Built-in AI APIs

Published: August 27, 2024, Last updated: May 20, 2025

Before you use these APIs, review the usage requirements.

API status

There are several built-in AI APIs available at different stages of development. Some are in Chrome stable, others are available to all developers in origin trials, and some are only available to Early Preview Program (EPP) participants.

Join the EPP to get first access to the latest experimental APIs.

API Explainer Web Extensions Chrome Status Intent
Translator API MDN Chrome 138 beta Chrome 138 beta View Intent to Experiment
Language Detector API MDN Chrome 138 beta Chrome 138 beta View Intent to Ship
Summarizer API MDN Behind a flag Chrome 138 beta Behind a flag Chrome 138 beta View Intent to Ship
Writer API GitHub Behind a flag Origin trial Behind a flag Origin trial View Intent to Experiment
Rewriter API GitHub Behind a flag Origin trial Behind a flag Origin trial View Intent to Experiment
Prompt API GitHub Experimental In EPP Chrome beta Chrome 137 beta View Intent to Experiment
Proofreader API GitHub Experimental In EPP Experimental In EPP View Intent to Prototype

Translator API

The Translator API is available from Chrome 138 stable. Translate user-generated and dynamic content on request.

Use cases

  • Users can enter a request in their first language, which you can identify with the Language Detector API. Then, use the Translator API to convert the request to your business operating language and send it to a support agent.
  • In a social network application, users can request a translation on-demand when a post appears on their timeline in a language they don't speak.

Language Detector API

The Language Detector API is available from Chrome 138 stable. You can use this API to detect the language of input text. This is a key part of the translation process, as you may not always know the input language for translation.

Use cases

Language detection has several use cases:

  • Determining the unknown source language for a following translation to a known target language, so the user doesn't have to specify both.
  • Labeling texts, for example, to improve screen reader pronunciation in online social networking sites.

Summarizer API

The Summarizer API is now available for local experimentation to our EPP participants. With this API, you use built-in Gemini Nano to condense long-form content. Shorter content can be more accessible and useful to users.

Use cases

There are a number of use cases for summarization:

  • Overview of a meeting transcript for those joining the meeting late or those who missed the meeting entirely.
  • Key points from support conversations for customer relationship management.
  • Sentence or paragraph-sized summaries of multiple product reviews.
  • Key points from long articles, to help readers determine if the article is relevant.
  • Generating draft titles for an article.
  • Summarizing questions in a forum to help experts find those which are most relevant to their field of expertise.

Writer and Rewriter APIs

The Writer API helps you create new content that conforms to a specified writing task, while the Rewriter API helps revise and restructure text. Both APIs are part of the Writing Assistance APIs explainer.

Help this proposal move to the next stage by indicating your support with a thumbs-up reaction or by commenting with details about your use cases and context.

Use cases

There are a number of use cases for writing and rewriting:

  • Write based on an initial idea and optional context. For example, a formal email to a bank asking to increase the credit limit based on the context that you're a long-term customer.
  • Refine existing text by making it longer or shorter, or changing the tone. For example, you could rewrite a short email so that it sounds more polite and formal.

Do you have additional ideas for these APIs? Share them with us on GitHub.

Prompt API

With the Prompt API, EPP participants can send natural language requests to Gemini Nano in Chrome.

In Chrome Extensions

With the Prompt API in Chrome Extensions, you can experiment in a real environment. Based on your findings, we can refine the API to better address real-world use cases.

The Prompt API is available from Chrome 138 stable, only for Chrome Extensions.

Proofreader API

The Proofreader API is available from Chrome 139 Canary for local experimentation Early Preview Program participants. With this API, you can provide interactive proofreading for your users in your web application or Chrome Extension.

Use cases

You could use the Proofreader API for any of the following use cases:

  • Correct a document the user is editing in their browser.
  • Help your customers send grammatically correct chat messages.
  • Edit comments on a blog post or forum.
  • Provide corrections in note taking applications.

Participate in early testing

We use your feedback to shape the future of these APIs, to ensure they meet the needs of developers and users.

Join our Early Preview Program to experiment with early-stage built-in AI APIs.